home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000064_bardicrune@hotmail.com_Tue Dec 16 09:35:55 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!nntp1.tagonline.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!fu-berlin.de!postnews1.google.com!not-for-mail
From: bardicrune@hotmail.com (Glenn W. Betz, III)
Newsgroups: comp.protocols.kermit.misc
Subject: HTTP Header Content-Type
Date: 15 Dec 2003 14:19:47 -0800
Organization: http://groups.google.com
Lines: 62
Message-ID: <c205519c.0312151419.1e2995d1@posting.google.com>
NNTP-Posting-Host: 216.248.142.193
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1071526787 28887 127.0.0.1 (15 Dec 2003 22:19:47 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 15 Dec 2003 22:19:47 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14745
I am having a problem with 8.0.209+ssl/tls Kermit's http header
function. I am trying to post a multipart/form-data file to a web
servlet and am receiving the following message in the servlet's log
file:
------------------------------------------------------------------------------
Corrupt form data: no leading boundary, Line is:
------------------------------------------------------------------------------
I should be getting something after the colon but it is empty. This
is what I am getting from the people responsible for the servlet.
------------------------------------------------------------------------------
Looks like we can't read your Content-Type: multipart/form-data;
boundary=?????? string, could it be some unreadable characters in the
beginning of the string? Here the logic that checks for boundary =
if (!line.startsWith(_boundary))
throw new Exception("Corrupt form data: no leading boundary, Line is:"
+ line);
where line is a String and nothing is being display in the log with
"line'
------------------------------------------------------------------------------Here
is the kermit script I am executing:
------------------------------------------------------------------------------
#!/ctc/bin/kermit +
#OPEN THE CONNECTION AND POST THE FILE
set authentication tls verify off
http /HEADER:{{Content-Type: multipart/form-data;
boundary=abc123abc123abc123} {Host: website.com{Port: 443}} {Accept:
text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}} /user:\%2
/password:\%3 post inputfile.txt https://website.com/dir/path/servlet
outputfile.txt
#IF THE CONNECTION FAILS ERROR OUT
if failure stop 1 HTTP POST failed: \v(http_message)
#CLEANUP THE CONNECTION AND EXIT
http close
quit
-------------------------------------------------------------------------------
The following is the multipart file I am sending (minus the data):
-------------------------------------------------------------------------------
--abc123abc123abc123
Content-Disposition: form-data; name="message"
Content-Type: text/xml
(xml data here.)
--abc123abc123abc123
Content-Disposition: form-data;name="textFileAttached";
filename="filename.txt"
Content-Type: text/plain
(plain text data here.)
--abc123abc123abc123--
-------------------------------------------------------------------------------
I would appreciate any help someone could offer me.
Thanks,
Glenn W. Betz, III